# -*- coding:utf-8 -*-

"""
众安 信贷开始
"""
from aw import *
from autotest import *


class Test_zhongan_03(TestCase):
    def setUp(self):
        print("Test_001 setUp")

    def test(self):
        Common.writeRule2file("Test_zhongan_18")
        Common.setRule("Test_zhongan_10")

        # FDS_QZ08001	1089	FDS_QZ08001众安信贷行为接口异常	众安信贷行为接口标识	众安信贷行为接口标识=02时，响应规则	RD	福贷-授信决策点8	00

        ruleStr = "众安信贷行为接口标识=02时，响应规则"
        Common.showRuleVariable(ruleStr)


        # 5 调用进件脚本
        Common.execFile(r'D:\dev\接口代码\AssetAutoTest\fudai\FDCreditChain.py')

        # 6 检查数据库结果
        expectVaule = {"result_code": "00", "rule_result": "RD", "rule_code": "FDS_QZ08001"}
        Common.checkResult(expectVaule, times=5)


    def tearDown(self):
        print("Test_001 tearDown")
